/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/views/layout/Layout'

const itimsRouter = {
  path: '/itims',
  component: Layout,
  redirect: '/itims/businessIndex',
  name: 'itims',
  meta: {
    title: 'itims',
    icon: 'table',
    roles: ['admin']
  },
  authority: 'itims',
  children: [
    {
      path: 'businessIndex',
      component: () => import('@/views/itims/business/businessIndex'),
      name: '商户管理',
      meta: { title: '商户管理' },
      authority: 'businessIndex'
    },
    {
      path: 'terminalIndex',
      component: () => import('@/views/itims/terminal/terminalIndex'),
      name: '终端资料',
      meta: { title: '终端资料' },
      authority: 'terminalIndex'
    },
    {
      path: 'groupIndex',
      component: () => import('@/views/itims/group/groupIndex'),
      name: '终端分组',
      meta: { title: '终端分组' },
      authority: 'groupIndex'
    },
    {
      path: 'appinfoIndex',
      component: () => import('@/views/itims/appinfo/appinfoIndex'),
      name: '应用信息',
      meta: { title: '应用信息' },
      authority: 'groupIndex'
    },
    {
      path: 'appinfofileIndex',
      component: () => import('@/views/itims/appinfofile/appinfofileIndex'),
      name: '应用文件',
      meta: { title: '应用文件' },
      authority: 'appinfofileIndex'
    },
    {
      path: 'versionpublish',
      component: () => import('@/views/itims/versionpublish/versionpublish'),
      name: '版本发布',
      meta: { title: '版本发布' },
      authority: 'versionpublish'
    },
    {
      path: 'reporthistory',
      component: () => import('@/views/itims/reporthistory/reporthistoryIndex'),
      name: '上报日志',
      meta: { title: '上报日志' },
      authority: 'reporthistory'
    }
  ]
}
export default itimsRouter
